#!/bin/sh
### BEGIN INIT INFO
# Provides:             elkeid-agent
# Required-Start:       $local_fs $network $syslog
# Required-Stop:        $local_fs $network $syslog
# Default-Start:        2 3 4 5
# Default-Stop:         0 1 6
# Short-Description:    elkeid-agent
# Description:          elkeid-agent
### END INIT INFO

# Directories and details
control="/etc/elkeid/elkeidctl"
case "$1" in
	start)
	"${control}" start
	;;
	stop)
	"${control}" stop
	;;
	restart)
   	"${control}" restart
	;;
	status)
	"${control}" status
	;;
	*)
	echo "Usage: $0 {start|stop|restart|status}"
	exit 1
	;;
esac

exit 0